import { createStore } from 'vuex'


const store = createStore({
    state: {
        authHeader: {
            'Content-Type': 'application/json',
            'jwtToken': localStorage.getItem('token')
        },
    },
    mutations: {
        setAuthHeader(state, header) {
            state.authHeader = header
        }
    }
})

export default store
